<{include file="admin/head.html"}>
<link rel="stylesheet" href="<{$smarty.const.__URL__}>plugins/tablecloth/tablecloth.css">
<body>
	<{include file="admin/nav.html"}>
	<div id="content">
		<div id="sidebar">
			<ul>
				<li><a href="comment.php?do=comments">查看评论</a></li>
				<li><a href="comment.php?do=addCom">添加评论</a></li>
			</ul>
		</div>
		<div id="main">
			<h2 id="page_title">评论列表</h2>
				<{if $list}>
				<table>
					<tr>
						<th>ID</th>
						<th>评论产品</th>
						<th>评论人</th>
						<th>评论内容</th>
						<th>操作</th>
					</tr>
					<{foreach from=$list item=l}>
					<tr>
						<td><{$l.id}></td>
						<td><{$l.p_name}></td>
						<td><{$l.user}></td>
						<td><{$l.words}></td>
						<td>
							<a href="comment.php?do=editCom&id=<{$l.id}>">修改</a>
							<a href="javascript:;" class="ln_del" data="{'url':'comment.php?do=delCom&id=<{$l.id}>','to':'comment.php?do=comments'}">删除</a>
						</td>
					</tr>
					<{/foreach}>
				</table>
				<{else}>
					<div class="no_data">暂无数据</div>
				<{/if}>
		</div>
	</div>
	<script type="text/javascript" src="<{$smarty.const.__URL__}>plugins/tablecloth/tablecloth.js"></script>
</body>
</html>